package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Device;

public interface DeviceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Device record);

    int insertSelective(Device record);

    Device selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Device record);

    int updateByPrimaryKey(Device record);
    
    //自定义接口
    List<Device> findByList(Device record);
    List<Device> findByListForPage(Device record);
    int findByCount(Device record);
	Device findByDevicecode(String materialcode);
	Device findByDevicename(String materialname);
}